<?php

/* @var $factory \Illuminate\Database\Eloquent\Factory */

use App\Models\Admin;
use Faker\Generator as Faker;

$factory->define(Admin::class, function (Faker $faker) {
    return [
        'user_name' =>"admin",
        'nick_name' => $faker->name,
        'phone' => $faker->unique()->phoneNumber,
        'avatar' => "/assets/backend/images/a".random_int(1,9).'.jpg',
//        'email' => $faker->unique()->email,
        'email' => "120235331@qq.com",
        'password' => bcrypt("12345678"),
    ];
});
